﻿d = document;
w = window;
function getid(id){
    return d.getElementById(id); 
}
function getname(name){
    return d.getElementsByName(name); 
}
function addfav(){
	w.external.AddFavorite(location.href, d.title);
}
function tsize(n, who){
	if(who == null){who = 'content';}
	$("#" + who).css({"font-size": n + "px"});
}
function loadjs(name){
	d.write('<script src="/js/' + name + '.js"></script>');
}


loadjs('flash');
loadjs('jq');
loadjs('cookie');
loadjs('base64');
loadjs('png');


d.write('<link rel="shortcut icon" href="favicon.ico" >');

function isEmail( str ){  
    var myReg = /^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/; 
    if(myReg.test(str)) return true; 
    return false; 
}

function account(){
	var ac = getCK("u[id]");
	if(ac==''){
		//d.write('<a href="/vip/login">会员登录</a>');
	}
	else{
		d.write($.base64Decode(getCK("u[uname]")));
	}
}